package com.mnb.base.controller;

import com.mnb.base.entity.StPptnR;
import com.mnb.base.entity.StRiverR;
import com.mnb.base.service.StPptnRService;
import com.mnb.base.service.impl.StPptnRServiceImpl;
import com.mnb.common.utils.R;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (ST_PPTN_R)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/st_pptn_r")
public class StPptnRController {
    /**
     * 服务对象
     */
    @Resource
    private StPptnRService stPptnRService;

    @RequestMapping("/getList")
    public R getList(StPptnR stPptnR) {
        return stPptnRService.getList(stPptnR);
    }

    @RequestMapping("/insert")
    public R insert(StPptnR stPptnR) {
        return stPptnRService.insert(stPptnR);
    }

    @RequestMapping("/update")
    public R update(StPptnR stPptnR) {
        return stPptnRService.update(stPptnR);
    }

    @RequestMapping("/delete")
    public R delete(@RequestBody List<StPptnR> list) {
        return stPptnRService.delete(list);
    }

    @RequestMapping("/getChartData")
    public R getChartData(StPptnR stPptnR) {
        return stPptnRService.getChartData(stPptnR);
    }
}
